package models

import "gorm.io/gorm"

type Goods struct {
	gorm.Model
	Price  float32 `gorm:"type:decimal(10,2);" json:"price"`
	Stock  int64   `gorm:"type:int;" json:"stock"`
	Status string  `gorm:"type:enum('上架','下架','维护中');" json:"status"`
	UserId int64   `gorm:"type:int;" json:"user_id"`
	Image  string  `gorm:"type:varchar(500);" json:"image"`
	Name   string  `gorm:"type:varchar(50);" json:"name"`
}
